A. Exploratory Data Analysis

B. Text Processing

B. I. Before Text Cleaning - Just Exploring

B.II. Text Cleaning

B. II. After Text Cleaning

C. Model Building

C. II. Hyperparameter Tuning

Creating functions for hyperparameters training </i>

====================================================

  • do_classify : This function performs classification using the best hyperparameters, which are determined using cv_optimize and then tests the model on the test set. This function prints the training and test accuracy of the classifier and plots the confusion matrix

  • cv_optimize : This function perform cross-validation using Grid search and is used for hyperparameter tuning and model selection. This function is called in the do_classify function which performs the classification

  • plot_confusion_matrix : This function plots the confusion matrix

  • make_pr : This function plots the Precision-Recall curve and also prints the AP(Average Precision)